package org.depsea.oss.model;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Map;

@NoArgsConstructor
@Data
public class OssConfigParser {

    private Map<String, String> config;

    private String accessKey;

    private String secretKey;

    private String defaultBucketName;

    private String endpoint;


    public OssConfigParser(Map<String, String> config) {
        this.config = config;
        this.accessKey = config.get("accessKey");
        this.secretKey = config.get("secretKey");
        this.defaultBucketName = config.get("defaultBucketName");
        this.endpoint = config.get("endpoint");
    }
}
